#pragma once

#include <QWidget>
#include <QPainter>
#include <QMouseEvent>
#include "StoryCellData.h"
#include "ui_StoryCellWidget.h"
#include "Constant.h"
QT_BEGIN_NAMESPACE
namespace Ui { class StoryCellWidgetClass; };
QT_END_NAMESPACE

class StoryCellWidget : public QWidget
{
	Q_OBJECT

public:
	StoryCellWidget(QWidget *parent = nullptr);
	~StoryCellWidget();

	void setUi(const StoryCellData& storyCellData);
private:
	StoryCellData storyCellData;
	Ui::StoryCellWidgetClass *ui;
	virtual void mouseReleaseEvent(QMouseEvent* event) override;
	virtual void paintEvent(QPaintEvent* event) override;
signals:
	void on_storyCellCell_click(StoryCellWidget*);
};
